package sharemem

const (
	HP			=	1
	ATK			=	2
	DEF			=	3
	ANGER		=	4
	CHARGE		=	5
	CRIT		=	6
	CRITRES		=	7
	CRITDMG		=	8
	CRITDMGRES	=	9
	DEFRES		=	10
	FIRERES		=	11
	ICERES		=	12
	WINDRES		=	13
	DARKRES		=	14
	CHOPRES		=	15
	PUNCTRES	=	16
	BLUDRES		=	17
	FLUIDRES	=	18
	LIGHTRES	=	19
	DEFPEN		=	30
	FIREINC		=	51
	ICEINC		=	52
	WINDINC		=	53
	DARKINC		=	54
	CHOPINC		=	55
	PUNCTINC	=	56
	BLUDINC		=	57
	FLUIDINC	=	58
	LIGHTINC	=	59
	FIREPEN		=	71
	ICEPEN		=	72
	WINDPEN		=	73
	DARKPEN		=	74
	CHOPPEN		=	75
	PUNCTPEN	=	76
	BLUDPEN		=	77
	FLUIDPEN	=	78
	LIGHTPEN	=	79
	GEARSCORE	=	99
	TOUGH		=	100
	EXCHARGE	=	101
	SPEED		=	102
	DRAGE		=	103
	DMGINC		=	105
	DMGDEC		=	106
	DOTDMG		=	107
	CUREINC		=	110
	BECUREINC	=	111
	HP_REAL		=	112
	ANGER_REAL	=	113
	TOUGH_REAL	=	114
	EXDMGINC	=	115
	FREEZEVALUE	=	116
)

type Battle struct {
	Id        int32
	Monster   [BATTLE_MONSTER]int32
}

func (tmp *Battle) meminit() {
	var i int32
	tmp.Id = 0
	for i = 0; i < BATTLE_MONSTER; i++ {
		tmp.Monster[i] = 0
	}
}
func (tmp *Battle) isUse() bool {
	return tmp.Id > 0
}
func (tmp *Battle) getId() int32 {
	return tmp.Id
}

func Get_config_battle(id int32) *Battle {
	v, ok := GetConfigBattleMap()[id]
	if !ok {
		return nil
	}

	return v
}
